import axios from '@/http/index'

export function getPermissions(params) {
  return axios({
    url: '/api/permission-management/permissions',
    method: 'get',
    params
  })
}

export function updatePermissions(query, payload) {
  return axios({
    url: `/api/permission-management/permissions`,
    method: 'put',
    params: query,
    data: payload
  })
}
